package com.lsh.service.impl;

import com.lsh.dao.MemberDao;
import com.lsh.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberDao memberDao;
    @Override
    public List<Integer> findByMonth(List<String> stringList) {
        //创建会员数集合
        List<Integer> count = new ArrayList<>();
        if(stringList != null){
            for (String s : stringList) {
                count.add(memberDao.findByMonth(s+"-32"));
            }
        }
        return count;
    }
}
